<{extend name="public/base"}>
<{block name="foot_source"}>
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">
<{/block}>
<{block name="content"}>
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><{$title}></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" method="post" action="<{:url('admin/withdraw/update')}>" >
            <div class="box-body">
                <div class="form-group">
                    <label for="name">收款姓名</label>
                    <input type="text" class="form-control" id="name" name="name" value="<{$model.name}>"  disabled>
                </div>
                <div class="form-group">
                    <label for="card_num">收款卡号</label>
                    <input type="text" class="form-control" id="card_num" name="card_num" value="<{$model.card_num}>"  disabled>
                </div>
                <div class="form-group">
                    <label for="bank">开户银行</label>
                    <input type="text" class="form-control" id="bank" name="bank" value="<{$model.bank}>"  disabled>
                </div>


                <div class="form-group">
                    <label for="money">申请金额</label>
                    <input type="text" class="form-control" id="money" name="money" value="<{$model.money}>"  disabled>
                </div>


                <input type="hidden" value="<{$model.id}>" name="id" />


                <div class="form-group">
                    <label>申请的公司信息</label>
                    <div>
                        <table id="example1" class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>公司名称</th>
                                <th>公司类型</th>
                                <th>余额</th>
                                <th>累计提现</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td><{$company->company_name}></td>
                                <td><{$company->type}></td>
                                <td><{$company->balance}></td>
                                <td><{$company->withdraw}></td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>


                <div class="form-group">
                    <select class="form-control" id="proccess" name="state">
                        <option value="1">提现成功</option>
                        <option value="2">拒绝提现</option>
                    </select>
                </div>

                <div class="form-group" style="display:none;" id="message">
                    <label>拒绝原因</label>
                    <input type="text" value="" name="message" class="form-control"/>
                </div>

            </div>
            <!-- /.box-body -->

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="<?php echo url('admin/withdraw/index'); ?>" class="btn btn-default">返回</a>
            </div>
        </form>
    </div>
    <!-- /.box -->
</div>


<{/block}>
<{block name="foot_script"}>
<script type="text/javascript">
    $(function () {
        $("#proccess").change(function(){
            var val = $(this).val();
            if(val == 2){
                $("#message").show();
            }else{
                $("#message").hide();
            }

        });
    })
</script>
<{/block}>

